net/http.persistConn.readLimit (field)
9 uses
net/http (current package)
transport.go#L1890: readLimit int64 // bytes allowed to be read; owned by readLoop
transport.go#L1923: if pc.readLimit <= 0 {
transport.go#L1926: if int64(len(p)) > pc.readLimit {
transport.go#L1927: p = p[:pc.readLimit]
transport.go#L1933: pc.readLimit -= int64(n)
transport.go#L2092: pc.readLimit = pc.maxHeaderResponseSize()
transport.go#L2115: if pc.readLimit <= 0 {
transport.go#L2126: pc.readLimit = maxInt64 // effectively no limit for response bodies
transport.go#L2311: pc.readLimit = pc.maxHeaderResponseSize() // reset the limit
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)